﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Globalization;

namespace SISCON.Model
{
    public class Role
    {
        private long _RoleId;
        private string _Name;
        private bool _IsStatic;
        private bool _IsActive;
        private string _CreatedBy;
        private DateTime _CreationDate;
        private long _LastUpdatedBy;
        private DateTime _LastUpdateDate;
        private List<RoleDet> _Permissions;

        public long RoleId
        {
            get { return _RoleId; }
            set { _RoleId = value; }
        }

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        public bool IsStatic
        {
            get { return _IsStatic; }
            set { _IsStatic = value; }
        }

        public bool IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }
        public string CreatedBy
        {
            get { return _CreatedBy; }
            set { _CreatedBy = value; }
        }
        public DateTime CreationDate
        {
            get { return _CreationDate; }
            set { _CreationDate = value; }
        }

        public string CreationDateStr
        {
            get { return _CreationDate.ToString("dd/MM/yyyy HH:mm"); }
            set { }
        }

        public long LastUpdatedBy
        {
            get { return _LastUpdatedBy; }
            set { _LastUpdatedBy = value; }
        }
        public DateTime LastUpdateDate
        {
            get { return _LastUpdateDate; }
            set { _LastUpdateDate = value; }
        }
        public string LastUpdateDateStr
        {
            get { return _LastUpdateDate.ToString("dd/MM/yyyy HH:mm"); }
            set { }
        }

        public List<RoleDet> Permissions
        {
            get { return _Permissions; }
            set { _Permissions = value; }
        }

        public static string READ_ACCESS = "R";
        public static string WRITE_ACCESS = "W";
        public static string NO_ACCESS = "N";

        public static string USERS = "Users";

        public static string ROLES = "Roles";

        public static string UPLOADS = "Uploads";

        public static string TEACHERS = "Teachers";

        public static string COURSES = "Courses";

        public static string CLASSROOMS = "Classrooms";

        public static string DEPARTMENTS = "Departments";
    }
}